package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.BasisLoadingEnvironment;
import com.ruoyi.mapper.BasisLoadingEnvironmentMapper;
import com.ruoyi.service.IBasisLoadingEnvironmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 案例与阵地环境关联Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-05-13
 */
@Service
public class BasisLoadingEnvironmentServiceImpl implements IBasisLoadingEnvironmentService
{
    @Autowired
    private BasisLoadingEnvironmentMapper basisLoadingEnvironmentMapper;

    /**
     * 查询案例与阵地环境关联
     * 
     * @param id 案例与阵地环境关联主键
     * @return 案例与阵地环境关联
     */
    @Override
    public BasisLoadingEnvironment selectBasisLoadingEnvironmentById(Long id)
    {
        return basisLoadingEnvironmentMapper.selectBasisLoadingEnvironmentById(id);
    }

    /**
     * 查询案例与阵地环境关联列表
     * 
     * @param basisLoadingEnvironment 案例与阵地环境关联
     * @return 案例与阵地环境关联
     */
    @Override
    public List<BasisLoadingEnvironment> selectBasisLoadingEnvironmentList(BasisLoadingEnvironment basisLoadingEnvironment)
    {
        return basisLoadingEnvironmentMapper.selectBasisLoadingEnvironmentList(basisLoadingEnvironment);
    }

    /**
     * 新增案例与阵地环境关联
     * 
     * @param basisLoadingEnvironment 案例与阵地环境关联
     * @return 结果
     */
    @Override
    public int insertBasisLoadingEnvironment(BasisLoadingEnvironment basisLoadingEnvironment)
    {
        return basisLoadingEnvironmentMapper.insertBasisLoadingEnvironment(basisLoadingEnvironment);
    }

    /**
     * 修改案例与阵地环境关联
     * 
     * @param basisLoadingEnvironment 案例与阵地环境关联
     * @return 结果
     */
    @Override
    public int updateBasisLoadingEnvironment(BasisLoadingEnvironment basisLoadingEnvironment)
    {
        return basisLoadingEnvironmentMapper.updateBasisLoadingEnvironment(basisLoadingEnvironment);
    }

    /**
     * 批量删除案例与阵地环境关联
     * 
     * @param ids 需要删除的案例与阵地环境关联主键
     * @return 结果
     */
    @Override
    public int deleteBasisLoadingEnvironmentByIds(Long[] ids)
    {
        return basisLoadingEnvironmentMapper.deleteBasisLoadingEnvironmentByIds(ids);
    }

    /**
     * 删除案例与阵地环境关联信息
     * 
     * @param id 案例与阵地环境关联主键
     * @return 结果
     */
//    @Override
//    public int deleteBasisLoadingEnvironmentById(Long id)
//    {
//        return basisLoadingEnvironmentMapper.deleteBasisLoadingEnvironmentById(id);
//    }
}
